package com.zq.configuration;

import com.zq.pojo.User;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootConfiguration
public class UserConfiguration {
    @Bean
    public User getUser(){
        User user = new User();
        user.setId(1);
        user.setName("张强");
        user.setAge(26);
        return user;
    }
}
